set curPath=%cd%
set curPan=%~d0
set /p project=Enter the project name to publish:

E:
cd E:\20190328_JavaCode\%project%\ 
svn update
@ping 127.0.0.1 -n 6 >nul
call mvn clean compile package
call mvn clean package

net use z: \\192.168.2.176\D$ "1qaz@WSX" /user:administrator
copy E:\20190328_JavaCode\%project%\target\%project%.war z: 
@ping 127.0.0.1 -n 6 >nul
net use z: /del

cd %curPan%
cd %curPath%
D:\javasoft\PSTools\psexec.exe \\192.168.2.176 -c .\publishWar.bat %project%
net use \\192.168.2.176 /delete

